package server.exchange;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class BigClient {
	Socket clientSocket;
	
	public BigClient() throws IOException{
	
	}
	
	public void start() throws IOException{
		
		
		try{
			Socket s1 = new Socket("127.0.0.1", 2013);
			OutputStream os = s1.getOutputStream();
			ObjectOutputStream oos = new ObjectOutputStream(os);
			Client obj1=new Client("IO");
			System.out.println("Creating obj!");
			oos.flush();
			oos.writeObject(obj1);
			System.out.println("Write on client complite");
			oos.close();
			s1.close();
		} catch (UnknownHostException e){
			System.out.println("Unknown host!");
		} 
		
	}
}
